package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @description：
 * @author：JBL
 * @date：2018/1/12
 */
@Controller
@RequestMapping("/")
public class DemoController {

    @RequestMapping("/demo")
    @ResponseBody
    public String demo(HttpServletRequest request){
        System.out.println("demo.........");
        return "demo";
    }
}
